﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ueEngine.Biz.Inf.LogicEntity;
using ueEngine.Biz.Core.ExServer.WorkPool;
using ueEngine.Biz.Core.ExServer.WorkPool.WorkHandle.Email;
using System.Configuration;

namespace ueEngine.Biz.Core.AppService.NewBiz
{
    public class NewBizService
    {
        public static ApplicationFormModel SaveNewApplicationForm(ApplicationFormModel model)
        {
            model.PostAdd();
            WorkPool.Append<AdvertisementEmail>(WorkType.email_for_advertisement,
               new AdvertisementEmail()
               {
                   DisplayName = "要兼职",
                   Title = "有人填写了申请表。请尽快查阅",
                   Html = "<b>重庆大学城兼职网，管理员。您好！</b><div>有人填写了活动参加申请表，请尽快查阅。 姓名："+model.Name+"，身份证："+model.IdNo+"，联系电话："+model.Phone+"</div><div>谢谢</div>",
                   Recipient = ConfigurationManager.AppSettings["adminnotice"]
               }, null);
            return model;
        }
    }
}
